import request from '@/utils/request'

export function selectTribunalEquipmentList(data) {
  return request({
    url: '/tribunalEquipment/api/findAllTribunalEquipment',
    method: 'post',
    data
  })
}

export function selectTribunalEquipmentListByType(data) {
  return request({
    url: '/tribunalEquipment/api/findTribunalEquipmentListByType',
    method: 'post',
    data
  })
}

export function getAllTribunalEquipmentListByType(data) {
  return request({
    url: '/tribunalEquipment/api/getAllTribunalEquipmentListByType',
    method: 'post',
    data
  })
}

export function updateTribunalEquipment(data) {
  return request({
    url: '/tribunalEquipment/api/updateTribunalEquipment',
    method: 'put',
    data
  })
}

export function addTribunalEquipment(data) {
  return request({
    url: '/tribunalEquipment/api/addTribunalEquipment',
    method: 'post',
    data
  })
}

export function deleteTribunalEquipment(data) {
  return request({
    url: '/tribunalEquipment/api/deleteTribunalEquipment',
    method: 'delete',
    data
  })
}

export function getAllTypeTribunalEquipmentList(data) {
  return request({
    url: '/tribunalEquipment/api/getAllTypeTribunalEquipmentList',
    method: 'post',
    data
  })
}

export function getAllTribunalEquipmentList(data) {
  return request({
    url: '/tribunalEquipment/api/getAllTribunalEquipmentList',
    method: 'post',
    data
  })
}

export function getAllPowerEquipmentStatus(data) {
  return request({
    url: '/tribunalEquipment/api/getAllPowerEquipmentStatus',
    method: 'post',
    data
  })
}

export function sendEquipmentCommand(data) {
  return request({
    url: '/tribunalEquipment/api/sendEquipmentCommand',
    method: 'post',
    data
  })
}

